package com.shelpe.services.simbasync.dao;

import com.shelpe.services.simbasync.model.InsightKeywordData;
import com.shelpe.services.simbasync.model.InsightKeywordDataExample;
import com.shelpe.services.simbasync.model.InsightKeywordDataKey;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface InsightKeywordDataMapper {
    int countByExample(InsightKeywordDataExample example);

    int deleteByExample(InsightKeywordDataExample example);

    int deleteByPrimaryKey(InsightKeywordDataKey key);

    int insert(InsightKeywordData record);
    
    int insertBatch(List<InsightKeywordData> list);

    int insertSelective(InsightKeywordData record);

    List<InsightKeywordData> selectByExample(InsightKeywordDataExample example);

    InsightKeywordData selectByPrimaryKey(InsightKeywordDataKey key);

    int updateByExampleSelective(@Param("record") InsightKeywordData record, @Param("example") InsightKeywordDataExample example);

    int updateByExample(@Param("record") InsightKeywordData record, @Param("example") InsightKeywordDataExample example);

    int updateByPrimaryKeySelective(InsightKeywordData record);

    int updateByPrimaryKey(InsightKeywordData record);
    
    Date selectLastDateByWord(@Param("keywordstr") String keywordstr);
    
}